package com.wallj.livechatclient;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by walljiang on 2016/6/27.
 */
public class EntityMessage implements Parcelable {

    String author;
    String message;

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(author);
        parcel.writeString(message);
    }

    public static final Creator<EntityMessage> CREATOR = new Creator<EntityMessage>() {

        @Override
        public EntityMessage createFromParcel(Parcel parcel) {
            EntityMessage info = new EntityMessage();
            info.author = parcel.readString();
            info.message = parcel.readString();
            return info;
        }

        @Override
        public EntityMessage[] newArray(int i) {
            return new EntityMessage[i];
        }
    };
}
